﻿using System;

namespace DisplaySC
{
    internal class ConfigInfo
    {
        public int Type { get; set; }

        public int Color { get; set; }

        public int Video { get; set; }

        public int Font { get; set; }

        public bool IsBorder { get; set; }

        public bool IsOmit { get; set; }

        public bool IsLine { get; set; }

        public bool IsDS { get; set; }

        public bool IsDX { get; set; }

        public bool IsHZ { get; set; }

        public bool IsQ1 { get; set; }

        public bool IsQ2 { get; set; }

        public bool IsQ3 { get; set; }

        public bool IsGroup { get; set; }

        public bool IsCarNumber { get; set; }

        public int Server { get; set; }

        public override string ToString()
        {
            return String.Format("{0}{1}{2}{3}{4}{5}{6}{7}{8}{9}{10}{11}{12}{13}{14}"
                , this.Type
                , this.Color
                , this.Font
                , this.IsBorder ? 1 : 0
                , this.IsOmit   ? 1 : 0
                , this.Video
                , this.IsLine   ? 1 : 0
                , this.IsDS     ? 1 : 0
                , this.IsDX     ? 1 : 0
                , this.IsHZ     ? 1 : 0
                , this.IsQ1     ? 1 : 0
                , this.IsQ2     ? 1 : 0
                , this.IsQ3     ? 1 : 0
                , this.IsGroup  ? 1 : 0
                , this.IsCarNumber ? 1 : 0
                );
        }
    }
}
